<%@page import="bean.MboardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>input</title>
<link rel="stylesheet" href="../css/mboardinput.css">
<script src="../js/mboard.js"></script>

</head>
<body>
<jsp:useBean id="vo" class="bean.MboardVO" scope="page"></jsp:useBean>
<jsp:setProperty property="*" name="vo"/>
<% 
String con = "--원 본 글--\n\n"+vo.getContent()+"\n\n------------";

%>
<div id="inputbox">
<form method="post" action="board_main.jsp?inpage=../mboard/mboard_reinput_r.jsp" name ="mboardfrmin">
	<label><select name="category" size="1">
		<option value="<%=vo.getCategory()%>"><%=vo.getCategory()%>
		
	</select></label>
	
	<label>제목<input type="text" name="subject" size="20" value="re:<%=vo.getSubject()%>"></label><br><br>
	
	<div><textarea rows="" cols=" "name="content" style='resize:none;'><%=con%></textarea></div><br><br>
		
	<label>태그<input type="text" name="tag" size="10" value=""></label><br><br>
	<input type="hidden" name="mid" value="<%=session.getAttribute("sessionMid")%>">
	<input type="hidden" name="grp" value="<%=vo.getGrp()%>">
	<input type="hidden" name="lev" value="<%=vo.getLev()%>">

	<input type="hidden" name="nowpage" value="<%=vo.getNowpage()%>">
	<input type="hidden" name="find" value="<%=vo.getFind()%>">
	<input type="hidden" name="search" value="<%=vo.getSearch()%>">
	<input type="hidden" name="rno" value="<%=vo.getRno()%>">
		
	<input type="button" value="저장" id ="btnresave">
	<input type="button" value="취소" id ="btncan">
	<input type="button" value="목록으로" id="btnlist">
</form>
<form name="listfrm" method="post">
	<input type="hidden" name="nowpage" value="<%=vo.getNowpage()%>">
	<input type="hidden" name="find" value="<%=vo.getFind()%>">
	<input type="hidden" name="search" value="<%=vo.getSearch()%>">
	<input type="hidden" name="rno" value="<%=vo.getRno()%>">
</form>
</div>


<script>inputinit();</script>

</body>
</html>